﻿using Sidvall.UI.Dialogs;
using System.Threading.Tasks;

namespace Sidvall.UI.Wpf.Dialogs
{
    public class XamMessageDialogManager : IMessageDialog
    {
        #region Public Members

        #region ShowMessageAsync

        public async Task ShowMessageAsync(MessageContext message)
        {
            var dialog = new XamMessageDialog();
            await dialog.ShowAsync(message, Sidvall.UI.Wpf.SystemContext.Current.MainWindow);
        }

        #endregion
        #region ToString

        public override string ToString()
        {
            return "Dialog - XamMessageDialog";
        }

        #endregion

        #endregion
        #region Constructors

        public XamMessageDialogManager()
        {
        }

        #endregion
    }
}
